build: Fix disabling --enable-man if xsltproc is not available
authorPhilip Withnall <withnall@endlessm.com>
Mon, 6 Mar 2017 12:19:28 +0000 (12:19 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 6 Mar 2017 13:48:17 +0000 (13:48 +0000)
If --enable-man=maybe (the default), and xsltproc is not available, the
configuration code would check for it, correctly set enable_man=no, then
incorrectly overwrite that with enable_man=yes, which would result in
later trying to execute $(XSLTPROC) when it’s empty.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #720
Approved by: cgwalters

configure.ac

index 48d8949c65331c5c03c3129974b84ebf2e04b918..83b8f48ff5a66f031230c7a3d924a87ed854e7e9 100644 (file)
@@ -184,8 +184,9 @@ AS_IF([test "$enable_man" != no], [
       AC_MSG_ERROR([xsltproc is required for --enable-man])
     ])
     enable_man=no
+  ],[
+    enable_man=yes
   ])
-  enable_man=yes
 ])
 AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)